using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;



/// &lt;summary&gt;
/// DBClass 的摘要说明
/// &lt;/summary&gt;
public class DBClass
{
public DBClass()
{
}
/// &lt;summary&gt;
/// 数据库连接
/// &lt;/summary&gt;
/// &lt;returns&gt;SqlConnection对象&lt;/returns&gt;
public SqlConnection GetConnection()
{
string myStr = ConfigurationManager.AppSettings["ConnectionString"].ToString();
SqlConnection myConn = new SqlConnection(myStr);
return myConn;
}
}